﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace HQHS.Library.Common.Factory
{
    internal class ObjectRegistry
    {
        // Fields
        private static Dictionary<IObjectId, object> _objects = new Dictionary<IObjectId, object>();

        // Methods
        internal static void AddObject(IObjectId id, object registeredObject)
        {
            _objects.Add(id, RuntimeHelpers.GetObjectValue(registeredObject));
        }

        internal static object GetObject(IObjectId id)
        {
            object obj3 = null;
            _objects.TryGetValue(id, out obj3);
            return obj3;
        }
    }



}
